<?php
/* @var $this FriendlyLinkController */
/* @var $model FriendlyLink */

$this->breadcrumbs=array(
	'Friendly Links'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'List FriendlyLink', 'url'=>array('index')),
	array('label'=>'Create FriendlyLink', 'url'=>array('create')),
	array('label'=>'Update FriendlyLink', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Delete FriendlyLink', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage FriendlyLink', 'url'=>array('admin')),
);
?>
<section class="content-header">
    <h1>
        友情链接
        <small>Friendly Links</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="<?=$this->createUrl('default/index')?>"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li><a href="<?=$this->createUrl('friendlyLink/index')?>">友情链接</a></li>
        <li class="active">详情</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">友情链接</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body no-padding">
                    <?php $this->widget('zii.widgets.CDetailView', array(
                        'data'=>$model,
                        'attributes'=>array(
                            'id',
                            'name',
                            'image',
                            'url',
                            'target'=>array('name'=>'target','value'=>Constants::getTargetOpenMethod($model->target)),
                            'sort',
                            'status'=>array('name'=>'status','value'=>Constants::getLinkTypeItems($model->status)),
                            'created_at'=>array('name'=>'created_at','value'=>date('Y-m-d',$model->created_at)),
                            'updated_at'=>array('name'=>'updated_at','value'=>date('Y-m-d',$model->updated_at)),
                            'expire_at'=>array('name'=>'expire_at','value'=>date('Y-m-d',$model->expire_at)),
                            'type',
                            'from_url',
                            'rel',
                        ),
                        'htmlOptions'=>array('class'=>'table table-striped')
                    )); ?>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</section>
<!-- /.content -->




